<%= form_for(@user, :html => {:multipart => true}) do |f| %>
<% if @user.errors.any? %>
<div id="error_explanation">
	<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

	<ul>
		<% @user.errors.full_messages.each do |msg| %>
		<li>
			<%= msg %>
		</li>
		<% end %>
	</ul>
</div>
<% end %>
<div class="buttons">
	<table>
		<tr>
			<td>
			<div class="actions">
				<%= f.submit 'Save', :class => "button" %>
			</div></td>
			<td><%= link_to 'Cancel', manager_users_path, :method => :get, :class => "button" %></td>
		</tr>
	</table>
</div>
</div>
<div class="content">
	<div id="tab-data">
		<table class="form">			
			<tr>
				<td><span class="required">*</span><%= t('Email') %> </td>
				<td> <%= f.text_field :email %> </td>
			</tr>
			<tr>
				<td><span class="required">*</span><%= t('Password') %> </td>
				<td> <%= f.password_field :password, :value => @user.password %> </td>
			</tr>
			<tr>
				<td><span class="required">*</span><%= t('Username') %> </td>
				<td> <%= f.text_field :fullname %> </td>
			</tr>						
			<tr>
				<td><%= t('Role') %></td>
				<td>Role</td>
			</tr>
		</table>
	</div>
</div>
</div>
<% end %>